package com.itheima.stock.mapper;

import com.itheima.stock.pojo.StockRtInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
* @author 12
* @description 针对表【stock_rt_info(个股详情信息表)】的数据库操作Mapper
* @createDate 2022-02-14 13:50:26
* @Entity com.itheima.stock.pojo.StockRtInfo
*/
public interface StockRtInfoMapper {
    int insertBatch(List<StockRtInfo> stockRtInfoList);

    int deleteByPrimaryKey(Long id);

    int insert(StockRtInfo record);

    int insertSelective(StockRtInfo record);

    StockRtInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockRtInfo record);

    int updateByPrimaryKey(StockRtInfo record);

    List<Map> getStockIncrease();

    List<Map> getStockAll();

    List<Map> getUpDownLimitCount(int type);

    List<Map> getStockUpDownScope(String last);

    List<Map> getStockScreenMinuteSharing(@Param("stockCode") String stockCode, @Param("tDate") String tDate);

    List<Map> getDayKLinData(@Param("code") String stockCode, @Param("startDate") String hisDateStr);

    List<String> getLimitGuPiao(String searchStr);

    String getname(String s);

    List<Map> getLineGraph(String code);

    Map getrealTimeNow(@Param("code") String code, @Param("stock") String stock);

    List<Date> getCloseDates(@Param("code") String code, @Param("beginDate") Date beginDate, @Param("endDate") Date endDate);

    List<Map> getStockCreenDkLineData(@Param("code") String code, @Param("dates") List<Date> dates);

    List<Map> stockScreenTimeSharing(@Param("stockCode") String code, @Param("startDate") Date avlDate, @Param("endtDate") Date endDate);

    List<Map> stockUpDownScopeCount(@Param("avlDate") Date avlDate);

    List<Map> upDownCount(@Param("avlDate") Date curTime, @Param("openDate") Date openDate, @Param("flag") Integer flag);

}
